package com.finance.model.ip.dto;

import org.springframework.stereotype.Component;

/**
 * @Author: Apollo
 * @Date: 2021/4/18
 * @Description: ip地址查询请求DTO
 */
@Component
public class IpRequestDto {

    private String ip;

    public static final String COL_IP = "ip";

    /**
     * 服务接口的url路径
     */
    public static final String SERVICE_URL = "http://api01.aliyun.venuscn.com/ip";

    /**
     * 授权
     */
    public static final String AUTHORIZATION_HEADER_KEY = "Authorization";

    /**
     * app code在头里携带的前缀
     */
    public static final String APP_CODE_PRE = "APPCODE ";

    /**
     * 申请的app code
     */
    public static final String APP_CODE = "d830932cba254487a489b4d86b7b8871";

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public static String getColIp() {
        return COL_IP;
    }

    public static String getServiceUrl() {
        return SERVICE_URL;
    }

    public static String getAuthorizationHeaderKey() {
        return AUTHORIZATION_HEADER_KEY;
    }

    public static String getAppCodePre() {
        return APP_CODE_PRE;
    }

    public static String getAppCode() {
        return APP_CODE;
    }
}
